package com.kingint.mbg.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wxh
 * @since 2020-12-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="NoticeUser对象", description="公告用户关联表")
public class NoticeUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "公告id")
    @TableField("notice_id")
    private Long noticeId;

    @ApiModelProperty(value = "酒店id")
    @TableField("hotel_id")
    private Integer hotelId;

    @ApiModelProperty(value = "公告标题")
    @TableField("notice_title")
    private String noticeTitle;

    @ApiModelProperty(value = "用户是否已读（0表示未读，1表示已读）默认未读")
    @TableField("read_flag")
    private Integer readFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "逻辑删除 0删除，1正常")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "用户上次查看时间")
    @TableField("last_time")
    private Date lastTime;


}
